package com.hiyee.article.task;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

//@Configuration
//@EnableScheduling
class PublishArticleTask {

    @Scheduled(cron = "0/3 * * * * ?")
    private void handle() {
        System.out.println("[定时任务]执行发布文章任务");
    }
}
